﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

using WMS.InventoryManagement.Differences.DTO;
using WMS.Pagination;

namespace WMS.InventoryManagement.Differences
{
    public interface IDifferencesAppService:IApplicationService
    {

        Task<PageResult> GetListAsync(string? stocker, int page, int limit);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="vendor">供应商信息</param>
        /// <returns>返回受影响数</returns>
        int CreateAsync(Difference difference);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="differenceId">主键Id</param>
        /// <returns>返回受影响行数</returns>
        int DeleteAsync(int differenceId);

        /// <summary>
        /// 获取对应数据
        /// </summary>
        /// <param name="differenceId">主键Id</param>
        /// <returns>返回受影响行数</returns>
        Difference GetDifferenceById(int id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        Task<int> UpdateAsync(UpdateDifferentDTO vendor);


    }
}
